package com.jingmi.jingmiliving.commodity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jingmi.common.utils.PageUtils;
import com.jingmi.jingmiliving.commodity.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性表
 *
 * @author jingmi
 * @email 2771368705@qq.com
 * @date 2023-10-22 12:19:50
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAll(AttrEntity attrEntity);

    PageUtils querySaleAttrPage(Map<String, Object> params,Long saleAttrId);

    PageUtils queryBaseAttrPage(Map<String, Object> params,Long baseAttrId);

    void baseAttrDelete(Long[] attrIds);

    List<AttrEntity> queryBaseByAttrIdPage(List<Long> attrId);

    List<AttrEntity> queryBaseAttrPageByCategoryId(Long categoryId);
}